{{$path:=""}}
{{ if .Site.Params.debug }}
{{ $path = `service-worker.js` }}
{{else}}
{{ $path = `service-worker.min.js` }}
{{ end }}


<script>
  var sw_path = {{- $path | relURL -}};
</script>